package com.kid.springcloud.controller;

import com.alibaba.csp.sentinel.adapter.servlet.callback.UrlCleaner;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Component;


@Component
public class CustomerUrlCleaner implements UrlCleaner {
    @Override
    public String clean(String s) {
        //isBlank判断s!=null&&有长度&&s不是全部为空格
        if(!(StringUtils.isBlank(s))){
            if(s.startsWith("/member/get")){
                return "/member/get/*";
            }
        }
        return s;
    }
}
